
import Editor from '../../editor'
import otherInput  from './otherInput'
import otherButton from './otherButton'
export default function others(editor:Editor){
    otherInput(editor)
    otherButton(editor)
}

export const addClickFn = (collection: HTMLCollectionOf<HTMLButtonElement | HTMLInputElement>,clickFn:Function) : void =>{
    for(const ele in Array.from(collection)){
        collection[ele].onclick =  function(e:Event){
            const target = e.target as HTMLElement;
            clickFn(target) 
        }
    }
}